package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WaindextabMapper;
import com.ruoyi.system.domain.Waindextab;
import com.ruoyi.system.service.IWaindextabService;
import com.ruoyi.common.core.text.Convert;

/**
 * 网站目录,大在前Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-18
 */
@Service
public class WaindextabServiceImpl implements IWaindextabService 
{
    @Autowired
    private WaindextabMapper waindextabMapper;

    /**
     * 查询网站目录,大在前
     * 
     * @param ID 网站目录,大在前主键
     * @return 网站目录,大在前
     */
    @Override
    public Waindextab selectWaindextabByID(Long ID)
    {
        return waindextabMapper.selectWaindextabByID(ID);
    }

    /**
     * 查询网站目录,大在前列表
     * 
     * @param waindextab 网站目录,大在前
     * @return 网站目录,大在前
     */
    @Override
    public List<Waindextab> selectWaindextabList(Waindextab waindextab)
    {
        return waindextabMapper.selectWaindextabList(waindextab);
    }

    /**
     * 新增网站目录,大在前
     * 
     * @param waindextab 网站目录,大在前
     * @return 结果
     */
    @Override
    public int insertWaindextab(Waindextab waindextab)
    {
        return waindextabMapper.insertWaindextab(waindextab);
    }

    /**
     * 修改网站目录,大在前
     * 
     * @param waindextab 网站目录,大在前
     * @return 结果
     */
    @Override
    public int updateWaindextab(Waindextab waindextab)
    {
        return waindextabMapper.updateWaindextab(waindextab);
    }

    /**
     * 批量删除网站目录,大在前
     * 
     * @param IDs 需要删除的网站目录,大在前主键
     * @return 结果
     */
    @Override
    public int deleteWaindextabByIDs(String IDs)
    {
        return waindextabMapper.deleteWaindextabByIDs(Convert.toStrArray(IDs));
    }

    /**
     * 删除网站目录,大在前信息
     * 
     * @param ID 网站目录,大在前主键
     * @return 结果
     */
    @Override
    public int deleteWaindextabByID(Long ID)
    {
        return waindextabMapper.deleteWaindextabByID(ID);
    }
}
